<?php
/**
 * 用户中心侧边栏
 * User: tengyu
 * Date: 2017/8/25
 * Time: 13:41
 */?>
<div class="col-xs-3">
    <!--左侧面版-->
    <div class="panel panel-default">
        <div class="panel-heading panelHeadingBg">
            @if(!$user->avator)
                <img src="{{asset('/img/181509094162_.pic_hd.jpg')}}" alt="头像" class="headPic" style="width:198px;height:198px;">
                @else
                <img src="{{asset("$user->avator")}}" style="height:198px;width:198px">
            @endif
        </div>
        <div class="panel-body">
            <!--2、列表组-->
            <ul class="list-group">
                <li @if($side=='账户信息')class="list-group-item active"@else class="list-group-item"@endif>
                    <a href="{{url('/user/account')}}">账户信息</a>
                </li>
                <li @if($side=='我的订单')class="list-group-item active"@else class="list-group-item"@endif>
                    <a href="{{url('/user/order')}}">我的订单</a>
                </li>
                <li @if($side=='在租家具')class="list-group-item active"@else class="list-group-item"@endif>
                    <a href="{{asset('/user/rentfitment')}}">在租家具</a>
                </li>
                <li @if($side=='我的账单')class="list-group-item active"@else class="list-group-item"@endif>
                    <a href="{{url('/user/bill')}}">我的账单</a>
                </li>
                <li @if($side=='我的优惠券')class="list-group-item active"@else class="list-group-item"@endif">
                    <a href="{{url('/user/coupon')}}">我的优惠券</a>
                </li>
                <li @if($side=='账户充值')class="list-group-item active"@else class="list-group-item"@endif>
                    <a href="{{url('/user/recharge')}}">账户充值</a>
                </li>
                <li @if($side=='信用额度')class="list-group-item active"@else class="list-group-item"@endif>
                    <a href="{{url('/user/quota')}}">信用额度</a>
                </li>
                <li @if($side=='收货地址')class="list-group-item active"@else class="list-group-item"@endif>
                    <a href="{{url('/user/address')}}">收货地址</a>
                </li>
                <li @if($side=='发票信息')class="list-group-item active"@else class="list-group-item"@endif>
                    <a href="{{url('/user/invoice')}}">发票信息</a>
                </li>
                <li @if($side=='个人信息')class="list-group-item active"@else class="list-group-item"@endif>
                    <a href="{{url('/user')}}">个人信息</a>
                </li>
                <li class="list-group-item">
                    <a href="{{url('/loginout')}}">注销</a>
                </li>
            </ul>
        </div>
    </div>
</div>
